package com.guan.ordering_sys.generator.entity;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author 关远键
 * @since 2021-06-18
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="Employee对象", description="")
public class Employee implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "雇员编号")
    @TableId(value = "employee_id", type = IdType.AUTO)
    private Long employeeId;

    @ApiModelProperty(value = "雇员姓名")
    private String employeeName;

    @ApiModelProperty(value = "雇员手机号")
    private String phone;

    @ApiModelProperty(value = "雇员身份证")
    private String idNumber;

    @ApiModelProperty(value = "雇员性别：0男1女")
    private String gender;

    @ApiModelProperty(value = "雇员联系地址")
    private String address;

    @ApiModelProperty(value = "工作状态：0离职1在职")
    private String workStatus;


    @ApiModelProperty(value = "离职时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss" )
    private Date inductionDate;

    @ApiModelProperty(value = "离职时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss" )
    private Date leaveDate;


}
